/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package simhya.dataprocessing;

import java.util.ArrayList;
import simhya.model.store.Store;
import java.io.*;

/**
 *
 * @author luca
 */
public class TrajectoryWithEventData extends Trajectory {
    private ArrayList<EventInfo> eventList;
    

    public TrajectoryWithEventData(int id, Store store, ArrayList<String> varsToSave, ArrayList<String> expVarsToSave) {
        super(id,store,varsToSave,expVarsToSave);
        eventList = new ArrayList<EventInfo>();
    }

    public TrajectoryWithEventData(int id, Store store) {
        super(id,store);
        eventList = new ArrayList<EventInfo>();
    }

    public TrajectoryWithEventData(int id, int points, Store store, ArrayList<String> varsToSave, ArrayList<String> expVarsToSave) {
        super(id,points,store,varsToSave,expVarsToSave);
        eventList = new ArrayList<EventInfo>();
    }

    public TrajectoryWithEventData(int id, int points, Store store) {
        super(id,points,store);
        eventList = new ArrayList<EventInfo>();
    }


    void addEvent(EventInfo e) {
        this.eventList.add(e);
    }

    public String eventListToString() {
        String s = "";
        for (EventInfo e : this.eventList)
            s += e.toString(id) + "\n";
        return s;
    }


}
